package com.hyt.it.ogt.kq.service.gov.service;

import javax.websocket.Session;

import com.hyt.it.ogt.kq.service.gov.model.vo.ProgressVO;

public interface IProgressService {

    /**
     * websocket方式获取进度
     * @param session
     * @param taskId
     * @param progressType
     * @throws Exception
     */
    void getProgressForWebsocket(Session session, String taskId, int progressType) throws Exception;

    /**
     * 前端请求接口形式获取进度
     * @param taskId
     * @param progressType
     * @return
     */
    ProgressVO get(String taskId, int progressType);
}
